﻿@model IEnumerable<Gfw.Web.Models.Account.AwardQueryListModel>
@{
    Layout = null;
}
@using  Gfw.Web.Common;
@using C.Mvc
@using MvcContrib.UI.Grid;
@using (Ajax.BeginForm("AwardQueryList", "UserAccount", null, Gfw.Web.Common.ViewHelper.AjaxGet))
{

    <table id="mytable">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.AwardDate)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TradeType)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AwardReceipt)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AwardActuality)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Taxation)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AwardSerialNo)
            </th>

        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.AwardDate)
                </td>
                <td>
                    @Html.Label(item.TradeType.GetDescriptionName(typeof(Gfw.Infrastructure.Account.UserTradeTypeEnum)))
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AwardReceipt)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AwardActuality)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Taxation)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AwardSerialNo)
                </td>
            </tr>
        }
    </table>
    
    @Ajax.DataGridPager().Model(ViewBag.Model).Totals(ViewBag.TotalSize).PageIndex(ViewBag.PageIndex).PagePropertyName("page").AjaxOptions(Gfw.Web.Common.ViewHelper.AjaxGet);
}
